import request from '@/utils/request'

// 登录接口
export const login = data => request({
  url: '/sys/login',
  method: 'POST',
  data
})

// 获取用户资料
export const userProfile = () => request({
  url: '/sys/profile',
  method: 'POST'
})

// 根据id获取用户基本信息
export const getProfileById = id => request({
  url: `/sys/user/${id}`
})

// 根据id获取用户个人信息
export const getPersonalById = id => request({
  url: `/employees/${id}/personalInfo`
})

// 获取员工简单列表
export const getUserSimple = () => request({
  url: '/sys/user/simple'
})

